package com.dhsc.local.dao.impl.wskh.ewmgl;

import com.dhsc.domain.ywzx.wskh.ewmgl.YjqzglVo;
import com.dhsc.local.dao.wskh.ewmgl.IYjqzglDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName YjqzglDaoImpl
 * @description: 佣金群组管理
 * @author: gx
 * @create: 2024-10-14 16:44:51
 **/
@Repository("yjqzgldao")
public class YjqzglDaoImpl implements IYjqzglDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<YjqzglVo> queryYjqzgl(YjqzglVo yjqzglVo) {
        return localSqlSessionTemplate.selectList("YjqzglMapper.queryYjqzgl", yjqzglVo);
    }

    @Override
    public int deleteYjqzgl(YjqzglVo yjqzglVo) {
        return localSqlSessionTemplate.delete("YjqzglMapper.deleteYjqzgl", yjqzglVo);
    }

    @Override
    public int insertYjqzgl(List<YjqzglVo> yjqzglVos) {
        return localSqlSessionTemplate.insert("YjqzglMapper.insertYjqzgl", yjqzglVos);
    }

    @Override
    public List<YjqzglVo> queryTkhqz(YjqzglVo yjqzglVo) {
        return localSqlSessionTemplate.selectList("YjqzglMapper.queryTkhqz",yjqzglVo);
    }
}
